﻿#ifndef PST_ANIMATIONSETTINGDIALOG_H
#define PST_ANIMATIONSETTINGDIALOG_H

#include <IdaDialogFrame>
QT_BEGIN_NAMESPACE
namespace Ui { class AnimationSettingDialog; };
QT_END_NAMESPACE

namespace pst
{
    class AnimationSettingData;
    class AnimationSettingDialog : public IdaDialogFrame
    {
        Q_OBJECT

    public:
        AnimationSettingDialog(QWidget* parent = nullptr);
        ~AnimationSettingDialog();

        void updateSetting(AnimationSettingData* data);
        void setIsDynamicTypeCamera(bool isDynamicTypeCamera);//true为相机动图，false为数据动图

    private:
        void updateUI();

    public slots:
        //void on_radioButton_rorateTheta_clicked(bool checked);
        //void on_radioButton_roratePhi_clicked(bool checked);
        void on_pushButton_confirm_clicked();
        void on_pushButton_cancel_clicked();

    private:
        Ui::AnimationSettingDialog* ui;
        AnimationSettingData* m_currentData;
        bool m_isDynamicTypeCamera{true};
        double m_thetaAngle;
        double m_phiAngle;
    };
}

#endif
